#include <stdio.h>

int main() {
    int a;
    scanf("%d", &a);
    printf("year=%d\nmonth=%02d\ndate=%02d", (int)a / 10000, (a % 10000 - a % 100) / 100, a % 100);
    return 0;
}